<?php

namespace app\console\model;

use think\Model;

class SignInfo extends Model
{
    protected static function init()
    {
        self::event('before_write',function ($data){
            $data->cover = uploadImg('cover');
        });
    }
}